<!--
	作者：956911785@qq.com
	时间：2019年10月16日14:11:59
	描述：账号权限设置-添加
-->

<template>
	<Tcontent ref="Tcontent" :paramsjs="paramsjs" :title="title" @addsave="addsave"></Tcontent>
</template>

<script>
	import Tcontent from "./Tcontent";
	export default {
		name:"addpermission",
		props: {
    	},
		data() {
			return {
				title:'添加账号权限',
				paramsjs:{
					dlzh:'',
					permission:''
				},
			}	
		},
		components: {
			Tcontent
		},
		methods: {
			addsave:function(datas){
				const params={...datas};
                this.$http.post("/host/readbook/permission/add_Userpermission.html",params)
				.then(datas => {
					if(datas.result){
						this.$Modal.success({
                            title: "提示",
                            content:datas.msg
                        });
                       this.$emit("reload");
                       this.$refs.Tcontent.closeModal();
					}else{
						this.$Modal.error({
                            title: "提示",
                            content:datas.msg
                       });	
					}
				});
	        },
			openmodal(){
				this.$refs.Tcontent.modal0 = true;
			}
		},
		mounted() {

		},
		watch:{
			
		}
	}
</script>

<style scoped="scoped">
	
</style>



